#include<stdio.h>
//int main()
//{
//	int a = 1;
//	int* p = &a;
//	printf("%p\n", p);
//	*p = 2;
//	printf("%d\n", a);
//}

//int main()
//{
//	/*short a = 2;
	/*int b = 1;
	printf("%d", sizeof(a = b + 1));*/
	/*int a = 3;
	int b = -5;
	int c = ~a;
	printf("%d", c);*/
	/*int a = 3;
	int b = -5;
	b = a ^ b;
	a = a ^ b;
	b = a ^ b;
	printf("a=%db=%d", a, b);*/


//}
//int main()
//{
//	int a = 5;//00000000000000000000000000000101
//	int count = 0;
//	while (a > 0)
//	{
//		a = a & (a - 1);
//		count++;
//	}
//	printf("%d", count);
//}

int main()
{
	int a = 5;
	int count = 0;
	while (a>0 )
	{
			if (a&1==1)
			count++;
			a = a >> 1;
	}
		printf("%d", count);
}